package com.hg.util.common;

public class UserAgentUtil
{
	//String user_agent="Mozilla/5.0 (Linux; Android 4.2.2; HUAWEI G6-T00 Build/HuaweiG6-T00) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/37.0.0.0 Mobile MQQBrowser/6.8 TBS/036872 Safari/537.36 MicroMessenger/6.3.27.880 NetType/WIFI Language/zh_CN";
	
	/**
	 * 是否是微信
	 * @param user_agent
	 * @return
	 */
	public static boolean isWeixin(String user_agent){
		return user_agent.toLowerCase().contains("micromessenger");
	}
	
	/**
	 * 是否是QQ
	 * @param user_agent
	 * @return
	 */
	public static boolean isQQ(String user_agent){
		return user_agent.toLowerCase().contains("qq/");
	}
}
